
public class DigraphNode {

    int nodeNumber, degree;
    LengthAndNext[] info;


    //constructor

    DigraphNode(int nodeNum, int degrees) {

        nodeNumber = nodeNum;

        degree = degrees;

        if (degree == 0) info = null;

        else info = new LengthAndNext[degree]; } 

}

